package com.ll.wechat.base.dao;

import android.app.Activity;
import android.os.Bundle;

public interface IBaseActivityManager {
	/**
	 * 关闭当前Activity
	 * 
	 * @author yeliangliang
	 * @date 2015-7-22 下午2:02:18
	 * @version V1.0
	 * @return void
	 */
	public void finishActivity(Activity activity);

	/**
	 * 跳转到新的Activity，并结束当前Activity
	 * 
	 * @author yeliangliang
	 * @date 2015-7-22 下午2:02:26
	 * @version V1.0
	 * @return void
	 */
	public void skipActivity(Activity oldActivity, Class<?> newActivity);

	/**
	 * 跳转到新的Activity，但是不关闭上一个Activity
	 * 
	 * @param newActivity
	 * @author yeliangliang
	 * @date 2015-7-22 下午2:04:14
	 * @version V1.0
	 * @return void
	 */
	public void showActivity(Activity oldActivity, Class<?> newActivity);

	/**
	 * 跳转到新的Activity，但是不关闭上一个Activity
	 * 
	 * @param newActivity
	 * @author yeliangliang
	 * @date 2015-7-22 下午2:04:14
	 * @version V1.0
	 * @return void
	 */
	public void showActivity(Activity oldActivity, Class<?> newActivity, Bundle bundle);

	/**
	 * 跳转到新的Activity，带返回值的
	 * 
	 * @author yeliangliang
	 * @date 2015-8-10 下午5:58:00
	 * @version V1.0
	 * @return void
	 */
	public void showActivityForResult(Activity oldActivity, Class<?> newActivity, int requestCode);

	/**
	 * 跳转到新的Activity，带返回值的
	 * 
	 * @author yeliangliang
	 * @date 2015-8-10 下午5:58:00
	 * @version V1.0
	 * @return void
	 */
	public void showActivityForResult(Activity oldActivity, Class<?> newActivity, Bundle bundle,
			int requestCode);
}
